package com.zz.tijian.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zz.tijian.entity.Users;
import com.zz.tijian.entity.req.ForgetDto;
import com.zz.tijian.entity.req.LoginDto;
import com.zz.tijian.entity.req.ResetPassDto;
import com.zz.tijian.entity.res.Result;
import com.zz.tijian.entity.res.UserDetailVo;

/**
* @author 17958
* @description 针对表【users】的数据库操作Service
* @createDate 2024-06-13 12:04:17
*/
public interface UsersService extends IService<Users> {

    Result<String> login(LoginDto loginDto);

    Result<Boolean> register(Users regUser);

    Result<UserDetailVo> getUserDetail();

    Result<String> loginByCode(LoginDto loginDto);

    Result<Boolean> getCode(String userId);

    Result<String> forgetPass(ForgetDto forgetDto);

    Result<Boolean> resetPass(ResetPassDto resetPassDto);
}
